package chapter08;

import java.util.Scanner;

public class Day5 {
    public static void main(String[] args) {
        int sum =0;

        Scanner input = new Scanner(System.in);

        for (int i = 1; i <=10; ++i) {
            System.out.println("请输入第"+i+"个数：");
           int num = input.nextInt();


           sum+=num;

        }
        System.out.println("和："+sum);
    }
}
